//可变向量
use rand::{self, Rng};
fn main() {
    let mut vec: Vec<i32> = Vec::new();
    add_vec(&mut vec);
    vec.reverse();
    println!("{:?}", vec);
}

fn add_vec(vec: &mut Vec<i32>) {
    let mut rng = rand::thread_rng();
    '_outer: for _x in 0..10 {
        '_inner: for _y in 0..10 {
            vec.push(rng.gen_range(0..100));
        }
    }
}
